﻿@model FlyingClub.Models.Plane

@{
    ViewBag.Title = "Ajouter un nouvel avion";
}

<h1>@ViewBag.Title</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <p>@Html.LabelFor(model => model.Name, "Nom")@Html.EditorFor(model => model.Name)<label style="width : auto; color : rgb(255, 0, 0);">*</label>@Html.ValidationMessageFor(model => model.Name)</p>
    <p class="break-line"></p>
    <p>@Html.LabelFor(model => model.HourRate, "Prix/H")@Html.EditorFor(model => model.HourRate)<label style="width : auto; color : rgb(255, 0, 0);">*</label>@Html.ValidationMessageFor(model => model.HourRate)</p>
    <p class="break-line"></p>
    <p>@Html.LabelFor(model => model.Number, "Identifiant")@Html.EditorFor(model => model.Number)<label style="width : auto; color : rgb(255, 0, 0);">*</label>@Html.ValidationMessageFor(model => model.Number)</p>
    <p class="break-line"></p>
    <p><label></label><input type="submit" /><input type="submit" value="Créer" /><label style="width : auto; color : rgb(255, 0, 0);">*Champ requis</label></p>
    <p class="break-line"></p>
}

<div class="link-button">
    <a href="/Planes#admin-planes">Retour à la liste des avions</a>
</div>
<div></div>